package com.simple.mvc;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 测试用 web 控制器
 * Created by Administrator on 2016/11/20.
 */
@Controller
@RequestMapping("/test")
public class TestCtrl {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @RequestMapping("/list")
    public String  test() {
        logger.debug("this test method is invoked and logging in file");
        return "index";
    }

}
